package com.ideaction.game.rank;

/**
 * @author wh
 * @create 2021-09-10 13:44
 */
public enum RankBoardTypeEnum implements RankBoardType {
    LEVEL_RANK_BOARD("playerLevelRank", 1)
    ;
    String rankName;
    int type;
    
    RankBoardTypeEnum(String rankName, int type) {
        this.rankName = rankName;
        this.type = type;
        register(type(), this);
    }
    
    /**
     * 获取排行榜名称
     */
    @Override
    public String getRankName() {
        return rankName;
    }
    
    /**
     * 获取类型
     */
    @Override
    public int type() {
        return type;
    }
}
